import os, re

# IP Address to access the student submission dir
submission_path = "http://192.168.56.20/~cs143/"
         
student_id = 0
submission_folder = "submissions"
submission_folder_abs = "/home/cs143/www/" + submission_folder
test_file  = "calculator.php"
query_parameter = "expr"       

# grading result file
results_dir = "RESULTS"
result_file = results_dir + "/gradebook.txt"
# gradebook header
header = "SID\tTEST1\tTEST2\tTEST3\tTEST3\tTEST5\tTotal(100)\n"

               
# In order to avoid fasle positive, please use unique answer 
#  that is not easily found in regular student page
          
point_per_case = 20

test_query1 = '1+2*3-11'
test_query_sol1 = '-4'

test_query2 = '3*4+4*2+5*1.6+0.1'
test_query_sol2 = '28.1'
                 
# error while search for "eval()'d code" - no point if string found
test_query3 = '0/0'
test_query_sol3 = 'error'

test_query4 = '$30+$400'
test_query_sol4 = 'error'

test_query5 = 'echo \'you should not see this\''
test_query_sol5 = 'error'

test_query = [test_query1, test_query2, test_query3, test_query4, test_query5]
test_query_sol = [test_query_sol1, test_query_sol2, test_query_sol3, test_query_sol4, test_query_sol5]
